package com.atguigu.gmall.common.constans;

import java.time.Duration;

/**
 * @author A
 * @version 1.0
 * @description: TODO
 * @date 2025/8/31 3:51
 */
public class RedisConstant {
    public static final String CATEGORY_CACHE_KEY = "categorys";
    public static final String BLOOM_SKU_ID = "bloom:skuid";
    public static final String SKU_DETAIL_PREFIX = "sku:detail:";
    public static final String LOCK_SKU_DETAIL_PREFIX = "lock:sku:detail:";
    public static final String LOCK_PREFIX = "lock:";
    public static final String SKU_ID_BLOOM_NAME = "skuIdBloom";
    public static final String SKU_SCORE_PREFIX = "sku:score";
    public static final String USER_TOKEN_PREFIX = "user:token:";
    public static final String USER_CART_PREFIX = "user:cart:";
    public static final String USER_COLLECT_PREFIX = "user:collect:";
    public static final Duration CART_EXPIRE_TIME = Duration.ofDays(90);
    public static final Long CART_MAX_SIZE = 200L;
    public static final String ORDER_REPEATE_SUBMIT_PRE = "order:repeat:submit:";
    public static final String SECKILL_GOODS_LIST_PREFIX = "seckill:goods:";
    public static final String SECKILL_GOODS_SEMAPHORE_PREFIX = "seckill:semaphore:";
    public static final String SECKILL_SKU_ID_STR_CODE = "seckill:code:";
    //+ userId + ":" + dateStr + ":" + skuId
    public static final String SECKILL_ORDER_PREFIX = "seckill:order:";
}
